Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Sep 24, 2025


PR-Codex overview

This PR introduces a temporary change in the table.tsx file of the NFT components, specifically setting the useIndexer property to false as a placeholder until a future fix is implemented.

Detailed summary

  • Added useIndexer: false to the configuration object in table.tsx.
  • Marked the change as temporary with a comment indicating it will be removed when fixed in insight.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Bug Fixes
    • Improved reliability of NFT lists in the dashboard for specific contracts by switching the data retrieval path to avoid intermittent indexer issues.
    • Ensures more consistent, up-to-date NFT data during browsing and refreshes with fewer failed loads or retries.
    • No visual/UI changes; behavior is more dependable without altering the interface or workflows.

@vercel vercel bot temporarily deployed to Preview – wallet-ui September 24, 2025 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 24, 2025 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 24, 2025 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 September 24, 2025 19:03 Inactive
@linear
Copy link

linear bot commented Sep 24, 2025

@vercel
Copy link

vercel bot commented Sep 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
thirdweb-www Ready Ready Preview Comment Sep 24, 2025 7:28pm
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs-v2 Skipped Skipped Sep 24, 2025 7:28pm
nebula Skipped Skipped Sep 24, 2025 7:28pm
thirdweb_playground Skipped Skipped Sep 24, 2025 7:28pm
wallet-ui Skipped Skipped Sep 24, 2025 7:28pm

@changeset-bot
Copy link

changeset-bot bot commented Sep 24, 2025

⚠️ No Changeset found

Latest commit: ed47e93

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 24, 2025

Walkthrough

A dashboard NFT table component now passes useIndexer: false to getNFTsQuery when fetching NFTs, with a TODO noting the change is temporary pending an external fix. No other logic, UI, or exported APIs were modified.

Changes

Cohort / File(s) Summary
NFT fetching query options
apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx
Added useIndexer: false to getNFTsQuery call and a TODO comment indicating this is temporary until an insight fix; no other behavioral or structural changes.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant U as User
  participant UI as Dashboard NFT Table
  participant Q as getNFTsQuery
  participant RPC as On-chain RPC
  participant IDX as Indexer

  U->>UI: Open contract NFTs page
  UI->>Q: getNFTsQuery({ useIndexer: false, ... })
  note right of Q #f2f4f8: Temporary flag (TODO)
  Q-->>IDX: Skip/disable indexer usage
  Q->>RPC: Fetch NFTs/owners via on-chain calls
  RPC-->>Q: Return NFT data and ownership
  Q-->>UI: Return NFT list
  UI-->>U: Render NFT table
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description retains the commented template and includes PR-Codex metadata but fails to fill in required sections such as a concise title, notes for the reviewer, and testing instructions from the repository’s template. Because the essential template sections are missing, the description is incomplete. Please populate the template with a concise title, reviewer notes, and testing steps to comply with the repository standards.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The title “[BLD-338] Dashboard: Fix NFTs table owner row not showing data” concisely captures the main change by referencing the linked issue and describing the fix to the NFTs table owner display. It is specific, clear, and aligns with the PR’s intent.
Linked Issues Check ✅ Passed This change adds a temporary useIndexer: false flag in table.tsx to bypass the broken indexer and restore owner data display, directly addressing the owner row bug described in issue BLD-338. The modification aligns with the objective of fixing the NFT owners display by adjusting the data-fetching logic until the insight fix is available.
Out of Scope Changes Check ✅ Passed The pull request only introduces the useIndexer: false flag and a related comment in table.tsx, and does not include any other code modifications. All changes are directly tied to the linked issue objective of fixing owner data display, so there are no out-of-scope changes.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bld-338

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between ba0e0c6 and ed47e93.

📒 Files selected for processing (1)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Size
  • GitHub Check: Build Packages
  • GitHub Check: Unit Tests
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Sep 24, 2025
@MananTank MananTank marked this pull request as ready for review September 24, 2025 19:03
@MananTank MananTank requested review from a team as code owners September 24, 2025 19:03
Copy link
Member Author

MananTank commented Sep 24, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel vercel bot temporarily deployed to Preview – nebula September 24, 2025 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 24, 2025 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 September 24, 2025 19:03 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 24, 2025 19:03 Inactive
@codecov
Copy link

codecov bot commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.26%. Comparing base (1f7cda6) to head (ed47e93).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8120   +/-   ##
=======================================
  Coverage   56.26%   56.26%           
=======================================
  Files         906      906           
  Lines       59208    59208           
  Branches     4174     4174           
=======================================
  Hits        33311    33311           
  Misses      25792    25792           
  Partials      105      105           
Flag Coverage Δ
packages 56.26% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.07 KB (0%) 1.3 s (0%) 206 ms (+137.47% 🔺) 1.5 s
thirdweb (cjs) 361.6 KB (0%) 7.3 s (0%) 810 ms (+9.6% 🔺) 8.1 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 53 ms (+599.34% 🔺) 168 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 40 ms (+1764.16% 🔺) 50 ms
thirdweb/react (minimal + tree-shaking) 19.14 KB (0%) 383 ms (0%) 70 ms (+1471.43% 🔺) 453 ms

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx (1)

53-63: Scope the indexer bypass to Base (8453) and avoid owner lookups for ERC1155.

Minimize global RPC load and keep indexer benefits elsewhere. Gate the workaround to ERC721 on Base; also skip includeOwners for ERC1155.

-    {
-      contract,
-      count: pageSize,
-      includeOwners: true,
-      start: currentPage * pageSize,
-      tokenByIndex,
-      useIndexer: false, // TEMPORARY, TODO: Remove when this is fixed in insight
-    },
+    {
+      contract,
+      count: pageSize,
+      includeOwners: isErc721, // avoid extra owner lookups for ERC1155
+      start: currentPage * pageSize,
+      tokenByIndex,
+      ...(isErc721 && contract.chain.id === 8453
+        ? { useIndexer: false } // TEMP: BLD-338 (Base 8453) – remove after Insight fix
+        : {}),
+    },

If the issue is isolated to a single contract, consider further narrowing the condition to that address to reduce blast radius.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 1f7cda6 and ba0e0c6.

📒 Files selected for processing (1)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx
apps/{dashboard,playground-web}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

apps/{dashboard,playground-web}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/* (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps
Use NavLink for internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Use cn() from @/lib/utils for conditional class logic
Use design system tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components (Node edge): Start files with import "server-only";
Client Components (browser): Begin files with 'use client';
Always call getAuthToken() to retrieve JWT from cookies on server side
Use Authorization: Bearer header – never embed tokens in URLs
Return typed results (e.g., Project[], User[]) – avoid any
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stable queryKeys for React Query cache hits
Configure staleTime/cacheTime in React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never import posthog-js in server components

Files:

  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx
apps/{dashboard,playground}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

apps/{dashboard,playground}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/_ (e.g., Button, Input, Tabs, Card)
Use NavLink for internal navigation to get active state handling
Use Tailwind CSS for styling; no inline styles
Merge class names with cn() from @/lib/utils for conditional classes
Stick to design tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components must start with import "server-only"; use next/headers, server‑only env, heavy data fetching, and redirect() where appropriate
Client Components must start with 'use client'; handle interactivity with hooks and browser APIs
Server-side data fetching: call getAuthToken() from cookies, send Authorization: Bearer <token> header, and return typed results (avoid any)
Client-side data fetching: wrap calls in React Query with descriptive, stable queryKeys and set sensible staleTime/cacheTime (≥ 60s default); keep tokens secret via internal routes or server actions
Do not import posthog-js in server components (client-side only)

Files:

  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx
apps/{dashboard,playground}/**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Expose a className prop on the root element of every component

Files:

  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components/table.tsx (1)

53-63: Targeted fix looks good; please confirm it resolves Base owners.

Adding useIndexer: false should force on‑chain owner resolution and address BLD-338. Please verify the owner column now populates for 0x48e03492C3abd53966397487bc370aE3aAF725F1 on chain 8453 (Base), and that pagination remains responsive.

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 24, 2025

Merge activity

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a temporary change to the `table.tsx` file in the NFTs component of the dashboard. It sets the `useIndexer` property to `false`, indicating a workaround until a future fix is implemented.

### Detailed summary
- Added `useIndexer: false` to the settings in `table.tsx`.
- Marked the addition as temporary with a comment: `// TEMPORARY, TODO: Remove when this is fixed in insight`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Bug Fixes**
  * Improved reliability of NFT lists in the dashboard, reducing intermittent errors and missing items when viewing NFTs for specific contracts.
  * Ensures more consistent, up-to-date NFT data is displayed during browsing and refreshes.
  * Enhances stability of data loading in environments with inconsistent indexing, minimizing failed loads and retries.
  * No visual/UI changes; behavior is more dependable without altering the interface or workflows.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 24, 2025 19:19 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 24, 2025 19:19 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 September 24, 2025 19:19 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 24, 2025 19:19 Inactive
@graphite-app graphite-app bot merged commit ed47e93 into main Sep 24, 2025
25 checks passed
@graphite-app graphite-app bot deleted the bld-338 branch September 24, 2025 19:29
@vercel vercel bot temporarily deployed to Production – nebula September 24, 2025 19:29 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui September 24, 2025 19:29 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground September 24, 2025 19:29 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 September 24, 2025 19:29 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants